package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="DM_CFLX"
 *     
*/
public class DmCflx implements Serializable {

    /** identifier field */
    private String cflxDm;

    /** nullable persistent field */
    private String cflxMc;

    /** full constructor */
    public DmCflx(String cflxDm, String cflxMc) {
        this.cflxDm = cflxDm;
        this.cflxMc = cflxMc;
    }

    /** default constructor */
    public DmCflx() {
    }

    /** minimal constructor */
    public DmCflx(String cflxDm) {
        this.cflxDm = cflxDm;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CFLX_DM"
     *         
     */
    public String getCflxDm() {
        return this.cflxDm;
    }

    public void setCflxDm(String cflxDm) {
        this.cflxDm = cflxDm;
    }

    /** 
     *            @hibernate.property
     *             column="CFLX_MC"
     *             length="30"
     *         
     */
    public String getCflxMc() {
        return this.cflxMc;
    }

    public void setCflxMc(String cflxMc) {
        this.cflxMc = cflxMc;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cflxDm", getCflxDm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof DmCflx) ) return false;
        DmCflx castOther = (DmCflx) other;
        return new EqualsBuilder()
            .append(this.getCflxDm(), castOther.getCflxDm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCflxDm())
            .toHashCode();
    }

}
